{if $get.act == "" ||

    $get.act == "index" ||
    $get.act == "quicklaunch" ||
    $get.act == "prompt"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">管理首页
      <ul>
        <li class="submenu_item"><a href="{$control_admin}?act=index" target="_self">管理首页</a></li>
      </ul>
    </li>
  </ul>
</div>
</div>
{if $admin.ag_fileallow.quicklaunch == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">快速启动 <a href="{$control_admin}?act=quicklaunch" target="_self"><img src="{$dir_images_admin}/submenu_config.gif" border="0" align="absmiddle" alt="设置快速启动" title="设置快速启动" /></a>
      <ul>
      {if $admin.ag_fileallow.quicklaunch == "1"}
        {foreach name=quicklaunch from=$quicklaunch item=item}
        <li class="submenu_item"><a href="{$item.url}" target="_self" title="{$item.name|str_entag:'space,br'}"><span style="{if $item.name_color != ''}color:{$item.name_color_value};{/if}{if $item.name_bold == '1'}font-weight:bold;{/if}">{$item.name|str_entag:'space,br'}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_config" ||

    $get.act == "config" ||
    $get.act == "select" ||
    $get.act == "amend"}
{if $admin.ag_fileallow.config == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">系统设置
      <ul>
      {if $admin.ag_fileallow.config == "1"}
        {foreach name=config_sort from=$config_sort item=config_sort}
        <li class="submenu_item"><a href="{$control_admin}?act=config&cs_id={$config_sort.cs_id}" target="_self" title="{$config_sort.cs_brief|str_entag:'space,br'}">{$config_sort.cs_name|str_entag:'space,br'}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.select == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">系统选项
      <ul>
      {if $admin.ag_fileallow.select == "1"}
        {foreach name=selectsort from=$selectsort key=key item=item}
        <li class="submenu_item"><a href="{$control_admin}?act=select&sort={$key}" target="_self" title="{$item}">{$item}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.amend == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">其他设置
      <ul>
      {if $admin.ag_fileallow.amend == "1"}<li class="submenu_item"><a href="{$control_admin}?act=amend" target="_self">我的资料</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_channel" ||

    $get.act == "channel" ||
    $get.act == "trans" ||
    $get.act == "trans_group" ||
    $get.act == "manage"}
{if $admin.ag_fileallow.channel == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">版块管理 {if $admin.ag_fileallow.channel == "1"}<a href="{$control_admin}?act=channel&channel_id=0" target="_self"><img src="{$dir_images_admin}/submenu_into.gif" border="0" align="absmiddle" alt="进入根目录" title="进入根目录" /></a>{/if}
      <ul>
      {if $admin.ag_fileallow.channel == "1"}
        {foreach name=channel_top from=$channel_top item=channel_top}
        <li class="submenu_item">
          {if $channel_top.type == "2"}
          <img id="type" border="0" align="absmiddle" src="{$dir_images_admin}/icon_folder.gif" alt="分区" title="类型为分区">
          {else}
          <img id="type" border="0" align="absmiddle" src="{$dir_images_admin}/icon_topic.gif" alt="论坛" title="类型为论坛">
          {/if}
          {if $admin.ag_privilege.channel == "1" || ($admin.ag_privilege.channel == "3" && $channel_top.channel_manage_admin_id != "")}
          <a href="{$control_admin}?act=channel&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}">{$channel_top.name|str_entag:'space,br'}</a></li>
          {else}
          <a href="{$control_admin}?act=channel&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}"><span class="disable">{$channel_top.name|str_entag:'space,br'}</span></a></li>
          {/if}
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.trans == "1" ||
    $admin.ag_fileallow.trans_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">横向分类管理
      <ul>
      {if $admin.ag_fileallow.trans == "1"}<li class="submenu_item"><a href="{$control_admin}?act=trans" target="_self">横向分类值</a></li>{/if}
      {if $admin.ag_fileallow.trans_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=trans_group" target="_self">横向分类组</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_topic" ||

    $get.act == "topic"}
{if $admin.ag_fileallow.topic == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">帖子管理
      <ul>
      {if $admin.ag_fileallow.topic == "1"}
        {foreach name=channel_top from=$channel_top item=channel_top}
        <li class="submenu_item">
          {if $channel_top.type == "2"}
          <img id="type" border="0" align="absmiddle" src="{$dir_images_admin}/icon_folder.gif" alt="分区" title="类型为分区">
          {else}
          <img id="type" border="0" align="absmiddle" src="{$dir_images_admin}/icon_topic.gif" alt="论坛" title="类型为论坛">
          {/if}
          {if $admin.ag_privilege.topic == "1" || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
          <a href="{$control_admin}?act=topic&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}">{$channel_top.name|str_entag:'space,br'}</a></li>
          {else}
          <a href="{$control_admin}?act=topic&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}"><span class="disable">{$channel_top.name|str_entag:'space,br'}</span></a></li>
          {/if}
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_member" ||

    $get.act == "member" ||
    $get.act == "member_group" ||
    $get.act == "admin_group" ||
    $get.act == "forbid_ip"}
{if $admin.ag_fileallow.member == "1" ||
    $admin.ag_fileallow.member_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">会员管理
      <ul>
      {if $admin.ag_fileallow.member == "1"}<li class="submenu_item"><a href="{$control_admin}?act=member" target="_self">会员管理</a></li>{/if}
      {if $admin.ag_fileallow.member_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=member_group" target="_self">会员群组设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.admin_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">管理员群组设定
      <ul>
      {if $admin.ag_fileallow.admin_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_group" target="_self">管理员群组设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.forbid_ip == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">封锁管理
      <ul>
      {if $admin.ag_fileallow.forbid_ip == "1"}<li class="submenu_item"><a href="{$control_admin}?act=forbid_ip" target="_self">禁止IP</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_tool" ||

    $get.act == "article" ||
    $get.act == "friendlink" ||

    $get.act == "template" ||
    $get.act == "admin_template" ||
    $get.act == "language" ||
    $get.act == "admin_language" ||

    $get.act == "clean_compile" ||
    $get.act == "clean_cache" ||
    $get.act == "clean_db" ||
    $get.act == "clean_article_cover" ||
    $get.act == "clean_article_attach" ||
    $get.act == "clean_friendlink_cover" ||
    $get.act == "clean_friendlink_attach"}
{if $admin.ag_fileallow.article == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">附加模块
      <ul>
      {if $admin.ag_fileallow.article == "1"}<li class="submenu_item"><a href="{$control_admin}?act=article" target="_self">公告管理</a></li>{/if}
      {if $admin.ag_fileallow.friendlink == "1"}<li class="submenu_item"><a href="{$control_admin}?act=friendlink" target="_self">友情链接管理</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.template == "1" ||
    $admin.ag_fileallow.admin_template == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">模板设定
      <ul>
      {if $admin.ag_fileallow.template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=template" target="_self">前台模板设定</a></li>{/if}
      </ul>
      <ul>
      {if $admin.ag_fileallow.admin_template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_template" target="_self">后台模板设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.language == "1" ||
    $admin.ag_fileallow.admin_language == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">语言设定
      <ul>
      {if $admin.ag_fileallow.language == "1"}<li class="submenu_item"><a href="{$control_admin}?act=language" target="_self">前台语言设定</a></li>{/if}
      </ul>
      <ul>
      {if $admin.ag_fileallow.admin_language == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_language" target="_self">后台语言设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.clean_compile == "1" ||
    $admin.ag_fileallow.clean_cache == "1" ||
    $admin.ag_fileallow.clean_db == "1" ||
    $admin.ag_fileallow.clean_article_cover == "1" ||
    $admin.ag_fileallow.clean_article_attach == "1" ||
    $admin.ag_fileallow.clean_friendlink_cover == "1" ||
    $admin.ag_fileallow.clean_friendlink_attach == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">清空缓存
      <ul>
      {if $admin.ag_fileallow.clean_compile == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_compile" target="_self">清空模板缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_cache == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_cache" target="_self">清空页面缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_db == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_db" target="_self">清空数据库缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_article_cover == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_article_cover" target="_self">清空生成的图片封面</a></li>{/if}
      {if $admin.ag_fileallow.clean_article_attach == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_article_attach" target="_self">清空生成的图片附件</a></li>{/if}
      {if $admin.ag_fileallow.clean_friendlink_cover == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_friendlink_cover" target="_self">清空生成的友情链接封面</a></li>{/if}
      {if $admin.ag_fileallow.clean_friendlink_attach == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_friendlink_attach" target="_self">清空生成的友情链接附件</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_help" ||

    $get.act == "help_system" ||
    $get.act == "help_frame" ||
    $get.act == "help_template" ||
    $get.act == "help_skill"}
{if $admin.ag_fileallow.help_system == "1" ||
    $admin.ag_fileallow.help_frame == "1" ||
    $admin.ag_fileallow.help_template == "1" ||
    $admin.ag_fileallow.help_skill == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">帮助支持
      <ul>
      {if $admin.ag_fileallow.help_system == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_system" target="_self">系统介绍</a></li>{/if}
      {if $admin.ag_fileallow.help_frame == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_frame" target="_self">系统架构</a></li>{/if}
      {if $admin.ag_fileallow.help_template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_template" target="_self">模板标签</a></li>{/if}
      {if $admin.ag_fileallow.help_skill == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_skill" target="_self">使用技巧</a></li>{/if}
</div>
</div>
{/if}
{/if}
